package com.wanxi.object;

import java.util.Objects;

public class StudentTest {
    public static void main(String[] args) {
        Student student1 = new Student("林青霞", 30);
        Student student2 = new Student("林青霞", 30);

        Student student3=null;
        if(Objects.isNull(student3)){
            System.out.println("不能为空");
        }else {
            System.out.println(student3.getName());
        }

//        System.out.println(student1.equals(student2));
    }
}
